package com.xltx.mail.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author liuyc
 * @ClassName MailProperties
 * @Description 邮箱配置
 * @Date 2022/1/17 10:56
 */
@ConfigurationProperties(prefix = MailProperties.PREFIX)
@Component
public class MailProperties {

    /**
     * configuration prefix
     */
    public static final String PREFIX = "xltx.mail";

    /**
     * mail type
     */
    private String type;

    /**
     * mail transport protocol
     */
    private String protocol;
    /**
     * mail serve host
     */
    private String host;

    /**
     * mail auth
     */
    private String auth = "true";

    /**
     * Authorization code
     */
    private String code;

    /**
     * session debug mode
     */
    private Boolean debug = false;
    /**
     * form email address
     */
    private String email;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getAuth() {
        return auth;
    }

    public void setAuth(String auth) {
        this.auth = auth;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Boolean getDebug() {
        return debug;
    }

    public void setDebug(Boolean debug) {
        this.debug = debug;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
